package com.example.javabasic.common.data;

/**
 * @author: cph
 * @date: 2022/2/15 11:26
 */
public enum StatusCodeEnum implements StatusCode {
    SUCCESS(200, "成功"),
    FAILURE(500, "失败");

    private Integer code;
    private String desc;

    StatusCodeEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getDesc() {
        return this.desc;
    }
}
